package com.glink.manage.dto.constructionwork;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.glink.common.serializer.JsonDate3DeSerializer;
import com.glink.common.serializer.JsonDate3Serializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
* @author  qiushaoshan
* @since 2025-01-13
*/
@ApiModel(value="ConstructionWorkAccessMonadAgreeDTO对象", description="施工工程准入审批单-同意")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConstructionWorkAccessMonadAgreeDTO implements Serializable {

    private static final long serialVersionUID = 5213371627939275739L;

    @ApiModelProperty(value = "主键ID")
    @NotBlank(message = "申请单ID不能为空")
    private String objId;

    @ApiModelProperty(value = "周期开始，yyyy-MM-dd")
    @JsonSerialize(using = JsonDate3Serializer.class)
    @JsonDeserialize(using = JsonDate3DeSerializer.class)
    private Date cycleStart;
    
    @ApiModelProperty(value = "周期结束，yyyy-MM-dd")
    @JsonSerialize(using = JsonDate3Serializer.class)
    @JsonDeserialize(using = JsonDate3DeSerializer.class)
    private Date cycleEnd;
}
